//
//  NSString+Util.h
//  LS
//
//  Created by wu quancheng on 12-6-10.
//  Copyright (c) 2012年 Mini. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSDate+Category.h"

@interface NSString(Category)
- (NSString*)MD5String;
- (NSString*)trimSpaceAndReturn;
- (NSDate *)dateWithStyle:(DateStyle)style;
+ (NSString *)uuid;
+ (NSString *)unistring;

- (NSString*)base64Encode;
- (NSString*)base64Decode;

- (NSString*)EncryptWithKey:(NSString*)key;
- (NSString*)DecryptWithKey:(NSString*)key;

- (CGSize)stringSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size;
- (NSAttributedString *)highlightedString:(NSString *)string withColor:(UIColor *)color;

- (BOOL)isChinese;
@end


@interface NSString (OAURLEncodingAdditions)

+ (NSString*) encodedURLParameter:(NSString*)aString;
- (NSString *)encodedURLString;
- (NSString *)encodedURLParameterString;
- (NSString *)decodedURLString;
- (NSString *)removeQuotes;
@end